Skip to content

Fix IntegrationTest.yml template to emit valid multi-line YAML#140

Merged
mtfishman merged 1 commit into
mainfrom
mf/fix-integrationtest-pkgs
May 8, 2026
Merged

Fix IntegrationTest.yml template to emit valid multi-line YAML#140
mtfishman merged 1 commit into
mainfrom
mf/fix-integrationtest-pkgs

Conversation

@mtfishman
Copy link
Copy Markdown
Member

Summary

The previous IntegrationTest.yml.template placed {DOWNSTREAMPKGS} on the same line as the pkgs: | block-scalar marker, and format_downstreampkgs joined entries without a leading newline or array wrapper. With downstream packages this produced invalid YAML; with no downstreams it produced a confusing empty literal block.

This PR fixes both halves so generation emits the multi-line JSON-array form already used across ecosystem packages and consumed by ITensorActions/.github/workflows/IntegrationTest.yml@v2 via fromJSON(inputs.pkgs):

  • Non-empty: pkgs: |\n [\n "Foo",\n "Bar"\n ]
  • Empty: pkgs: |\n []

Existing tests (which check for pkgs: | and the package name) continue to pass; verified the generated YAML in both cases against a clean process.

The previous template emitted `pkgs: |<entries>` with content joined to the
literal-block scalar marker on the same line, producing invalid YAML when
package names were present. Fix by placing `{DOWNSTREAMPKGS}` on its own line
and updating `format_downstreampkgs` to emit a JSON-array form indented under
the block scalar:

  pkgs: |
        [
          "Foo",
          "Bar"
        ]

The empty case emits `pkgs: |\n        []`. This matches the format already
used across ecosystem packages (e.g. SparseArraysBase) and is consumed by
ITensorActions/.github/workflows/IntegrationTest.yml@v2 via fromJSON.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.42%. Comparing base (d0ee8b7) to head (618d093).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
+ Coverage   87.34%   87.42%   +0.07%     
==========================================
  Files           1        1              
  Lines         158      159       +1     
==========================================
+ Hits          138      139       +1     
  Misses         20       20              
Flag Coverage Δ
docs 59.74% <33.33%> (-0.40%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mtfishman mtfishman enabled auto-merge (squash) May 8, 2026 17:42
@mtfishman mtfishman merged commit 5d3c2f1 into main May 8, 2026
18 checks passed
@mtfishman mtfishman deleted the mf/fix-integrationtest-pkgs branch May 8, 2026 17:42
mtfishman added a commit to ITensor/ITensorTestPackage.jl that referenced this pull request May 8, 2026
## Summary

- Regenerated `.github/workflows/` from the latest `ITensorPkgSkeleton`
template.
- Adds `CheckCompatBounds`, `CodeQL`, and `FormatCheckComment`; updates
the rest to current ecosystem conventions (action versions, job names,
permissions blocks).
- `IntegrationTest.yml` uses the multi-line JSON-array `pkgs:` form
consumed by `ITensorActions/IntegrationTest.yml@v2` (matching the fix in
ITensor/ITensorPkgSkeleton.jl#140).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant